package com.recource.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.recource.domain.Coach;
import com.recource.domain.Vip;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xjhStart
 * @create 2023-04-30 下午1:37
 */
@Mapper
public interface CoachMapper extends BaseMapper<Coach> {

    //根据教练id 查询全部会员
    List<Vip> getAllVip(String id);


    //根据学员id 查询全部教练
    List<Coach> getAllCoach(String id );

    void make(@Param("vipId") String vipId,@Param("coachId") String coachId);

}
